import os
path = 'C:/Users/Administrator/Downloads'
files = os.listdir(path)

for f in files:
    if 'idea' in f and f.endswith('.exe'):
        print(f)